#ifndef KENOGAME_H
#define KENOGAME_H

class KenoPayout;
class KenoCard;
class KenoBet;

#ifdef FORCED_KENO
#include "GameForcedResults.h"
#endif

class KenoGame
{
	public:
		KenoGame(KenoPayout *payout);
		~KenoGame();

		bool8 PlayCard(KenoCard &card);
		bool8 PlayGame(KenoBet *bet, int32 *payout, int32 *picks);
		bool8 PlaceBet(KenoBet *bet);

		void send();

#ifdef FORCED_KENO
		void  setForcedResults(GameForcedResults *forcedResults);
#endif

	protected:
		int32 findTotalCost(KenoBet *bet);
		int32 findPayout(KenoBet *bet, int32 *picks);
		int32 findCardPayout(KenoCard *card, int32 *picks);
		int32 findPayout(int32 picks, int32 catches);

		KenoPayout  		*m_payout;
		KenoBet				*m_bet;

#ifdef FORCED_KENO
		GameForcedResults *m_forcedResults;
#endif

		//
		// *IMPORTANT*  When adding/changing here, be sure to update
		//				constructors/destructor, send(), save(), restore()
		//
};

#endif
